package com.vidmt.api.modules.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.vidmt.api.modules.sys.entity.Role;

@MyBatisDao
public interface RoleDao extends CrudDao<Role> {
	@Select("SELECT * FROM v_role WHERE is_sys=0")
	public List<Role> findClientRoleList();

	@Select("SELECT * FROM v_role WHERE `key` = #{0}")
	public Role getRoleByKey(String key);
}
